package com.jielin.handling.entity.vo.record;

import com.jielin.handling.bean.base.BaseSearchEX;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description 笔录申请参数
 * @Author WR
 * @Date 2020-10-13 10:05
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordApplyParams extends BaseSearchEX {
    /**
     * 查看类型:true=个人申请,false=他人申请
     */
    private Boolean catType = Boolean.FALSE;

    /**
     * 当前民警id
     */
    @NotNull(message = "传入的policeId为null，请传值", groups = First.class)
    @NotEmpty(message = "传入的policeId空字符串，请传值", groups = First.class)
    private String policeId;

    /**
     * 民警的姓名或编号
     */
    private String policeNameOrCode;

    /**
     * 是否同意={0:拒绝;1:同意;2:申请;}(默认申请)
     */
    private String isPass;

    /**
     * 关键字
     */
    @NotNull(message = "传入的keyWord为null，请传值", groups = Two.class)
    @NotEmpty(message = "传入的keyWord空字符串，请传值", groups = Two.class)
    private String keyWord;

}
